import { connect } from 'react-redux'
import Shop from '../../components/merchantInfo/shop'
import { getList1, Add, Del } from '../../action/index';
const mapStateToProps = state => {
    // console.log(state)
    return {
        product: state.reducer.products
    }
}
const mapDispatchTopProps = dispatch => {
    return {
        getList1() {
            dispatch(getList1())
        },
        Add(addItem) {
            Add(addItem,dispatch)
        },
        Del(delItem){
            Del(delItem,dispatch)
        }
    }
}

export default connect(mapStateToProps, mapDispatchTopProps)(Shop)